import Login from "@/views/LoginView.vue";
import { MenuList } from "@types";
const menuList: MenuList = [
   {
      path: "/status",
      component:() => import("@/views/StatusView.vue"),
      title: "基本信息",
      key: "status",
      name: "status"
   },
   {
      path: "/setting",
      component:() => import("@/views/SettingView.vue"),
      title: "系统设置",
      key: "setting",
      name: "setting"
   },
   {
      path: "/log",
      component:() => import("@/views/LogView.vue"),
      title: "日志",
      key: "log",
      name: "log"
   },
   {
      path: "/debug",
      component:() => import("@/views/DebugView.vue"),
      title: "调试",
      key: "debug",
      name: "debug"
   }
   
];

const routes = [
   { path: "/login", component: Login, name: "login" },
   {
      path: "/",
      redirect:"status",
      component: () => import("@/layout/LayoutIndex.vue"),
      children: menuList,
   },
];

export { routes, menuList };
